package cn.xscrum.demo.controller;

import cn.xscrum.common.core.controller.BaseController;
import cn.xscrum.demo.service.ISepDegreeService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/demo/degree")
public class SimpleController extends BaseController {
    private String prefix = "demo/degree";

    @Autowired
    private ISepDegreeService sepDegreeService;

    @RequiresPermissions("demo:degree:what")
    @GetMapping("/what")
    public String degree()
    {
        return prefix + "/echartdemo";
    }
}

